<?

$Db = new oracleDb;
$Db->init($_SESSION["ORCL"],
           $_SESSION["OPASS"],
           $_SESSION["SID"],
           _NO_COMMENT);

$propWhs    = $GJs->jsOnFocus("GMisc.setYellow2(this);
                               Ajax.whs(this);").

              $GJs->jsOnBlur ("GMisc.setWhite2(this);");

$lstFromWhs = $Misc->retArray($_POST["fromEnt"]);

$lstToWhs   = $Misc->retArray($_POST["toEnt"]);

if(!$_POST["memoEnt"]){

  $_POST["memoEnt"] = " ";
}

$_SESSION["tmpJid"] = (!empty($_SESSION["tmpJid"]))? $_SESSION["tmpJid"] :
                                                     $GProcessors->getTmpJid();

echo 	$GJs->includeThis(_TYPE_CSS,"/ecs/myMenu.css").
      $GJs->includeThis(_TYPE_JS ,"/ecs/javascript/GMisc.js").
      $GJs->includeThis(_TYPE_JS ,"/ecs/javascript/GAjax.js").
      $GJs->includeThis(_TYPE_JS ,"javascript/misc.js").
      $GJs->includeThis(_TYPE_JS ,"javascript/ajax.js").
      $GJs->stopRKey().

      "<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"../javascript/CalendarPopup.js\"></SCRIPT> \n".
			"<SCRIPT LANGUAGE=\"JavaScript\">\n".
			"var cal      = new CalendarPopup();\n".
			"var gStatus    = Array();\n".
			"    gStatus[0] = false;\n".
			"</SCRIPT> \n".

 			/**
 			* Since this is to prevent default 'enter'
 			*
 			*/
 			"<body >\n".
 			"<form  name='initMe' action=entry.php method=post>\n".

 			/**
 			* Global header
 			*
 			*/
			"<table border='1' class='dedeq' >\n".
			"<tr>\n".

			  "<th> DATE
			    <input type='submit' onClick=\"cal.select(document.forms['initMe'].trDateEnt,
			                                              'anchor1',
			                                              'dd-MM-yyyy');
			                                   return false;\"
			                         NAME=\"anchor1\"
			                         ID=\"anchor1\"
			                         value='Select'></b></th>

			      <td >	".$GHtml->formInput("trDateEnt",
                                      $_POST["trDateEnt"],
                                      $stdStyle . $stdProperties)." </td> \n".

      "</tr>\n".
      "<tr>\n".

        "<th> From </th><td> ".$GHtml->formDropDown("fromEnt",
                                                    $_POST["fromEnt"],
                                                    $lstFromWhs,
                                                    $propWhs)." </td>\n".

      "</tr>\n".
      "<tr>\n".

        "<th> To   </th><td> ".$GHtml->formDropDown("toEnt",
                                                    $_POST["toEnt"],
                                                    $lstToWhs,
                                                    $propWhs)." </td>\n".

			"</tr>\n".
      "<tr>\n".

        "<th> Memo  </th><td> ".$GHtml->formTextArea("memoEnt",
                                                     $_POST["memoEnt"],
                                                     $Misc->stdProperties())." </td>\n".

      "</tr>\n".
			"</table><br/>\n";
?>